package com.bilicute.libman.service;


import com.bilicute.libman.pojo.Book;
import com.bilicute.libman.pojo.PageBean;

public interface BookService {
    Book findBookById(Integer id);

    void borrow(Integer id, Integer loggedInUserId,String recordId);

    void resultBook(Integer id);

    void add(Book book);

    void off(Integer id);

    void pass(Integer id);

    PageBean<Book> list(Integer pageNum, Integer pageSize, Integer book_status);

    PageBean<Book> listMyBorrow(Integer pageNum, Integer pageSize, Integer book_status, Integer loggedInUserId);

    void delete(Integer id);
}
